<template>
  <div class="wrap headerwrap">
    <h1>
      <img src="../assets/img/indexLogo.6f8ac4f0.png" alt="">
    </h1>
    <ul class="navs">
      <li :class="{
        active: $route.path === '/home'
      }" @click="$router.push('/home')">首页</li>
      <li :class="{
        active: $route.path === '/goods'
      }" @click="$router.push('/goods')">全部商品</li>
      <li :class="{
        active: $route.path === '/user'
      }" @click="$router.push('/user')">个人中心</li>
      <li :class="{
        active: $route.path === '/order'
      }" @click="$router.push('/order')">我的订单</li>
      <li :class="{
        active: $route.path === '/free'
      }" @click="$router.push('/free')">专属福利</li>
    </ul>
    <div class="search">
      <input type="text" value="输入关键字">
      <span>
        <img src="../assets/img/search.png" alt="">
      </span>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
.headerwrap {
  height: 118px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-family: SourceHanSansSC;
  font-weight: 500;

  .navs {
    width: 500px;
    display: flex;
    cursor: pointer;
    justify-content: space-between;
  }

  .search {
    display: flex;

    input {
      width: 214px;
      height: 40px;
      border: 1px solid #DEDEDE;
      outline: none;
      border-radius: 20px 0px 0px 20px;
      box-sizing: border-box;
      text-indent: 2em;
    }

    span {
      width: 50px;
      height: 40px;
      background: #0A328E;
      border-radius: 0px 20px 20px 0px;
      line-height: 44px;
      text-align: center;
    }
  }
}
</style>